package cn.dansj.bean;

import cn.dansj.enums.GlobalEnv;
import cn.dansj.common.utils.transfer.DefaultMethods;

import java.io.Serial;
import java.io.Serializable;

/*
 * 企业微信发送消息的返回对象
 * */
public class WeComResponse extends DefaultMethods implements Serializable {
    @Serial
    private static final long serialVersionUID = GlobalEnv.SerialVersionUID;

    public enum errCodeEnum {
        RecipientError(-1001, "/user/tag/party不能同时为空"),
        PubSenderConfigLost(-1002, "发件人配置信息未找到"),
        PubCorpNotEnough(-1003, "企业和应用信息不齐全"),
        ;
        private final int code;
        private final String msg;

        private errCodeEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    private int errCode;
    private String errMsg;
    private String invalidUser;
    private String invalidParty;
    private String invalidTag;

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getInvalidUser() {
        return invalidUser;
    }

    public void setInvalidUser(String invalidUser) {
        this.invalidUser = invalidUser;
    }

    public String getInvalidParty() {
        return invalidParty;
    }

    public void setInvalidParty(String invalidParty) {
        this.invalidParty = invalidParty;
    }

    public String getInvalidTag() {
        return invalidTag;
    }

    public void setInvalidTag(String invalidTag) {
        this.invalidTag = invalidTag;
    }
}
